<?php 
include("includes/code.php");

$result = mysql_query("SELECT title,text FROM pages WHERE page='contact'",$db);
if (!$result)
{ myerror("XATOLIK! pages jadvalidan malumot olinmadi");  }
$myrow = mysql_fetch_array($result);
$title = stripslashes($myrow["title"]);
$text = stripslashes($myrow["text"]);

///// headerni olamiz
include("includes/header.php"); 
?>

<!-- content and sidebar -->
<div id="main">
<table class="main_table" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td class="left_col">
<!-- ------------- left start ------------- -->
<?php include("includes/left.php"); ?>
    
<!-- ----------------- left finish ---------------- -->
    </td>
    <td>
<div class="content">
<!-- content start -->

<h4 class="sarlavha"><?php echo $title ?></h4>

<table width="95%"  style="margin:5px 0 20px 0;" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td style="border-right:1px solid #CCCCCC">
	<p><?php echo $text; ?> </p>
    </td>
    <td width="170">
<p>
<?php 
echo "<b>Telefon:</b><br>";
echo $row_contact->tel."<br>";
echo $row_contact->tel2."<br><br>";

echo "<b>Email:</b><br>";
echo $row_contact->email."<br>";
echo $row_contact->email2."<br><br>";
?>
</p>
    </td>
  </tr>
</table>
<!--aloqa -->
<h4 class="sarlavha"><?=$lang['send'] ?></h4>


<iframe width="99%" height="400" frameborder="0" src="includes/contact_form.php" scrolling="no"></iframe>

<!--aloqa // -->

<!-- content finish -->
</div>
    </td>
    <td class="right_col">
<!-- -------- right start ----------- -->
<?php include("includes/right.php"); ?>
<!-- --------- right finish ------- -->
    </td>
  </tr>
</table>

</div>
<!-- content and sidebar finish -->

</div>
<!-- main container finish -->
<?php include("includes/footer.php"); ?>